package models

import "tuowei.com/common/models"

type SysQuestionBankLink struct {
	models.Model
	LinkType        int    `json:"link_type" gorm:"tinyint(1);comment:关联类型 1-练习题 2-试卷"`
	LinkId          int    `json:"link_id" gorm:"int(5);index;comment:关联ID link_type=1 关联ID为练习题主键ID =2关联ID为试卷主键ID"`
	ChapterId       int    `json:"chapter_id" gorm:"int(5);index;comment:子章节ID"`
	QuestionBankStr string `json:"question_bank_str" gorm:"varchar(255);comment:关联数据"`
	models.ModelTime
}

func (SysQuestionBankLink) TableName() string {
	return "sys_question_bank_link"
}



type SysQuestionBankLinkDelete struct {
	models.Model
	LinkType        int    `json:"link_type" gorm:"tinyint(1);comment:关联类型 1-练习题 2-试卷"`
	LinkId          int    `json:"link_id" gorm:"int(5);index;comment:关联ID link_type=1 关联ID为练习题主键ID =2关联ID为试卷主键ID"`
	ChapterId       int    `json:"chapter_id" gorm:"int(5);index;comment:子章节ID"`
	QuestionBankStr string `json:"question_bank_str" gorm:"varchar(255);comment:关联数据"`
}

func (SysQuestionBankLinkDelete) TableName() string {
	return "sys_question_bank_link"
}
